#include "tcpClient.hpp"
#include <memory>
using namespace std;

static void Usage(const string &s)
{
    cout << "\n" << s << " local_ip port\n" << endl;
}
int main(int argc, char *argv[])
{
    if(argc != 3)
    {
        Usage(argv[0]);
        exit(1);
    }
    unique_ptr<TcpClient> ptct(new TcpClient(argv[1], atoi(argv[2])));
    ptct->initClient();
    ptct->start();
    return 0;
}